// 将静态本地路径转变成可用的
export function turnUsefulUrl(urls: Array<string> | string) {
  console.log("turnUsefulUrl");
  if (typeof urls === "string") {
    return new URL(`${urls}`, import.meta.url).href;
  }
  return urls.map((item) => new URL(`${item}`, import.meta.url).href);
}
